<?php
class service_news{

    static public function getTop(){
        $newsDao = new DaoNews();
        $newsLsit = $newsDao->getList("categoryID = 32 order by isIndex desc,id ASC",8);
        return $newsLsit;
    }
    
    static public function getOneByID($id){
        $newsDao = new DaoNews();
        $news = $newsDao->getOne("id = '".$id."'");
        return $news;
    }
}
?>
